LIBS = -lrt -lm
CC = gcc
CFLAGS =  -fopenmp -g -O2
SRCS=$(wildcard *.c)
PROGS = $(patsubst %.c,%,$(SRCS))

OBJS=../src/.libs/libCamellia.a

.PHONY: all 
all: $(PROGS)

%: %.c 
	$(CC) $(CFLAGS) -o $@ $<  $(LIBS) $(OBJS)

clean:
	@- $(RM) ${PROGS}

